#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include <fcntl.h>
#include<pwd.h>

int main(int argc,char **argv){

   struct passwd *pwd,*pwd2;
   uid_t my;
   char *loginmy;
   my = getuid();
   pwd = getpwuid(my);

   printf(" %s \n",pwd->pw_name);

   loginmy = getlogin();
   printf(" %s \n",getlogin());

   pwd2 = getpwuid(my);
   printf(" %s \n",pwd2->pw_shell);
   printf(" %s \n",pwd2->pw_passwd);
   
   
   



   return 0;
}